package mark.tom.gear.base.model

/**
 * @Description: 基本的结果模型
 * @Author: ttmk110@163.com
 * @Package: mark.tom.gear.base.model
 * @Date: 2021/4/2
 * @Copyright: 版权归 Mark 所有
 * <ModifyLog>
 * @ModifyContent:
 * @Author:
 * @Date:
 * </ModifyLog>
 */
class Result {

    // 是否成功
    var success = false
    // 错误信息
    var msg: String = ""

    companion object {
        @JvmStatic
        fun build(success: Boolean = true, msg: String = ""): Result {
            val result = Result()
            result.success = success
            result.msg = msg
            return result
        }
    }

}